package com.ipc.core.entity.gwl;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * (ThirdScreen)表实体类
 *
 * @author 高万里
 * @since 2023-04-30 12:14:52
 */
@TableName("t_third_screen")
@ColumnWidth(20)
@Data
public class ThirdScreen extends Model<ThirdScreen> {

    //主键
    @ApiModelProperty(value = "ID，不用写")
    @ExcelIgnore
    @TableId(type = IdType.AUTO)
    private Integer id;

    //诱导屏编号
    @ApiModelProperty(value = "诱导屏编号", required = true)
    @NotBlank(message = "诱导屏编号不能为空!")
    @ExcelProperty("诱导屏编号")
    private String no;

    //诱导屏名称
    @ApiModelProperty(value = "诱导屏名称", required = true)
    @NotBlank(message = "诱导屏名称不能为空!")
    @ExcelProperty("诱导屏名称")
    private String name;

    //停车场ID
    @ApiModelProperty(value = "停车场ID", required = true)
    @NotNull(message = "停车场ID不能为空!")
    @ExcelProperty("停车场ID")
    private Integer parkId;

    //剩余泊位数
    @ApiModelProperty(value = "剩余泊位数", required = true)
    @NotBlank(message = "显示内容不能为空!")
    @ExcelProperty("显示内容")
    private String display;

    // 备注
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空!")
    @ExcelProperty("备注")
    private String remark;
}

